ad792eb3cc3047660dd62d266d48a1af095e7daa,src/no/nordicsemi/android/dfu/DfuBaseService.java,DfuBaseService,onHandleIntent,#Intent#,724
Before Change
// The device will reset so we don't have to send Disconnect signal.
waitUntilDisconnected();
sendLogBroadcast(Level.INFO, "Disconnected by remote device");
// Close the device
refreshDeviceCache(gatt);
After Change
* In the DFU from SDK 6.1, which was also supporting the buttonless update, there was no DFU Version characteristic. In that case we may find out whether
* we are in the bootloader or application by simply checking the number of characteristics.
*/
if (version == 1 || dfuService.getCharacteristics().size() > 3 /* Generic Access, Generic Attribute, DFU Service */) {
// the service is connected to the application, not to the bootloader
logi("Application with buttonless update found");
sendLogBroadcast(Level.INFO, "Application with buttonless update found");
sendLogBroadcast(Level.VERBOSE, "Jumping to the DFU Bootloader...");
// enable notifications